import myAxios from '@/utils/request'

export const queryIndexConfigListApi = (params) =>
  myAxios.get('/index-configs/page', { params: params })

export const deleteIndexConfigByIdsApi = (ids) =>
  myAxios.delete('/index-configs', {
    params: {
      ids: ids.join(',')
    }
  })

export const saveIndexConfigApi = (data) => myAxios.post('/index-configs', data)

export const updateIndexConfigApi = (data) =>
  myAxios.put('/index-configs', data)

export const getIndexConfigByIdApi = (id) => myAxios.get(`/index-configs/${id}`)
